<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        <div class="layui-form-item">
            <label class="layui-form-label">是否开启社区团购</label>
            <div class="layui-input-block">
                <input type="checkbox" name="group_purchase" lay-skin="switch" lay-text="是|否" checked>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">公告</label>
            <div class="layui-input-block">
                <input type="text" name="announcement" class="layui-input" lay-verify="required" placeholder="请输入公告"
                       value="">
            </div>
        </div>
        <div class="layui-form">
            <div class="layui-form-item">
                <div class="layui-inline"><label class="layui-form-label">休市时间</label>
                    <div class="layui-inline" id="test6">
                        <div class="layui-input-inline">
                            <input type="text" name="stop_start_time" data-date="" data-date-type="datetime"
                                   class="layui-input" placeholder="请选择上架时间" value="">
                            <div class="layui-form-mid">
                                -
                            </div>
                            <div class="layui-input-inline">
                                <input type="text" name="stop_end_time" data-date="" data-date-type="datetime"
                                       class="layui-input" placeholder="请选择上架时间" value="">
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">团长申请海报</label>
                <div class="layui-input-block layuimini-upload">
                    <input name="reg_apply_image" class="layui-input layui-col-xs6" lay-verify="required"
                           placeholder="请上传分类图片" value="">
                    <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="reg_apply_image" data-upload-exts="png|jpg|ico|jpeg"
                             data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                        <span><a class="layui-btn layui-btn-normal" id="reg_apply_image"
                                 data-upload-select="reg_apply_image"
                                 data-upload-number="one" data-upload-mimetype="image/*"><i
                                class="fa fa-list"></i> 选择</a></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">休市海报</label>
                <div class="layui-input-block layuimini-upload">
                    <input name="stop_image" class="layui-input layui-col-xs6" lay-verify="required"
                           placeholder="请上传分类图片"
                           value="">
                    <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="stop_image" data-upload-exts="png|jpg|ico|jpeg"
                             data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                        <span><a class="layui-btn layui-btn-normal" id="stop_image" data-upload-select="stop_image"
                                 data-upload-number="one" data-upload-mimetype="image/*"><i
                                class="fa fa-list"></i> 选择</a></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">休市海报</label>
                <div class="layui-input-block layuimini-upload">
                    <input name="sup_apply_image" class="layui-input layui-col-xs6" lay-verify="required"
                           placeholder="请上传分类图片" value="">
                    <div class="layuimini-upload-btn">
                    <span><a class="layui-btn" data-upload="sup_apply_image" data-upload-exts="png|jpg|ico|jpeg"
                             data-upload-icon="image"><i class="fa fa-upload"></i> 上传</a></span>
                        <span><a class="layui-btn layui-btn-normal" id="sup_apply_image"
                                 data-upload-select="sup_apply_image"
                                 data-upload-number="one" data-upload-mimetype="image/*"><i
                                class="fa fa-list"></i> 选择</a></span>
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">发货方式</label>
                <div class="layui-input-block">
                    <input type="text" name="send_mode" class="layui-input" lay-verify="required" placeholder="请输入发货方式"
                           value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">自定义团长名称</label>
                <div class="layui-input-block">
                    <input data-open="master.master/masterIndex" data-title="选择团长" type="text" name="custom_master"
                           class="layui-input"
                           lay-verify="required"
                           placeholder="请输入自定义团长名称" value="1" id="master_ids" >
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">团长覆盖范围</label>
                <div class="layui-input-block">
                    <input type="text" name="master_range" class="layui-input" lay-verify="required"
                           placeholder="请输入团长覆盖范围"
                           value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">提现手续费</label>
                <div class="layui-input-block">
                    <input type="text" name="withdrawal_fee" class="layui-input" lay-verify="required"
                           placeholder="请输入提现手续费" value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">最低提现金额</label>
                <div class="layui-input-block">
                    <input type="text" name="min_with_fee" class="layui-input" lay-verify="required"
                           placeholder="请输入最低提现金额"
                           value="">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">团长佣金</label>
                <div class="layui-input-block">
                    <input type="text" name="master_commission" class="layui-input" lay-verify="required"
                           placeholder="请输入团长佣金" value="">
                </div>
            </div>
            <div class="hr-line"></div>
            <div class="layui-form-item text-center">
                <button lay-filter="formDemo" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
                <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
            </div>
        </div>
    </form>
</div>
<script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js">
</script>
<script>
    function getMasterIds(obj) {
        $('#master_ids').val(obj)
    }
</script>